import request from '@/utils/request'

export const addTaskSub = (info) => {
    return request({
        url: 'tasksub/sub',
        method: 'post',
        data: info
        //目前是只能支持提交一次文件
    })
}
export const subTaskSub = (info) => {
    return request({
        url: 'tasksub/sub',
        method: 'get',
        params: info
        //目前是只能支持提交一次文件
    })
}

//文件导出
export const exportTaskFile = (ids) => {
    return request({
            url: 'tasksub/download-zip',
            method: 'post',
            data: ids,
            responseType: 'blob',
            headers: {'Content-Type': 'application/json; application/octet-stream'}
        }
    )
}
